
<div class="breakcrumbs" >
<? while($c = array_pop($category)){
  ?>
   <?=$c['id']?'':'<span class="ui-icon ui-icon-home"></span> '?><a href="/doc/index/<?=$c['id']?>/" ><?=$c['title']?></a> >
  <?
  } ?> 
   
</div>
<div class="smallmenu" >
  <a href="/doc/mkdir/<?=seg(3)?>/" > <span class="ui-icon ui-icon-folder-collapsed"></span> 创建目录</a>
  <a href="/doc/add/<?=seg(3)?>/" > <span class="ui-icon ui-icon-document"></span> 创建文件</a>
 <?=seg(3)?'<a href="/doc/del/'.seg(3).'/" > <span class="ui-icon ui-icon-trash"></span> 删除本目录及文件</a>':''?> 
</div>
<div class="files" >
<?if(is_array($records )){?>
<?foreach ($records as $r ){?>
  <li>
    <div class="filename" > <a href="/doc/<?=$r[doct_type]=='dir'?'index':'view'?>/<?=$r['id']?>/" ><span class="ui-icon ui-icon-<?=$r[doct_type]=='dir'?'folder-collapsed':'document'?>"></span> <span class="file-title" ><?=$r['title']?></span></a></div>
    <div class="time" ><?=__time($r['update_time'])?></div>
  </li>
<?  }
}?>
</div>
<?=$pagination?>
